

const getLocalStorageData = (key: string) => {
    return JSON.parse(localStorage.getItem(key) ?? '[]')
}

const setLocalStorageData = (key: string, data: object) => {
    localStorage.setItem(key, JSON.stringify(data))
}
export {
    getLocalStorageData, setLocalStorageData
}